package com.lala.provider.controller;

import com.github.pagehelper.PageInfo;
import com.lala.commom.pojo.User;
import com.lala.commom.remote.UserRemote;
import com.lala.provider.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
public class UserController implements UserRemote {
    @Autowired
    private UserService userService;

    @Override
    public User selectLoginname(String loginName) {
        return userService.selectLoginname(loginName);
    }

    @Override
    public int zhuce(User user) {
        return userService.insert(user);
    }

    @Override
    public PageInfo<User> selectUser(int pageNum, int pageSize) {
        return null;
    }

    @Override
    public int updateUser(User user) {
        return 0;
    }

    @Override
    public int deleteUser(Integer id) {
        return 0;
    }


}
